<!-- HTML header for doxygen 1.8.8-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <!-- For Mobile Devices -->
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
        <meta name="generator" content="Doxygen 1.8.18"/>
        <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
        <title>HElib: helib::PolyModRing Struct Reference</title>
        <!--<link href="tabs.css" rel="stylesheet" type="text/css"/>-->
        <script type="text/javascript" src="dynsections.js"></script>
        <link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
        <link href="doxygen.css" rel="stylesheet" type="text/css" />
        <link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
        <link href='https://fonts.googleapis.com/css?family=Roboto+Slab' rel='stylesheet' type='text/css'>
		<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100;1,700&family=Merriweather&family=Merriweather+Sans&family=Open+Sans&family=Poppins:ital@1&family=Roboto:ital,wght@0,400;1,300;1,900&display=swap" rel="stylesheet"> 
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
        <link href="jquery.smartmenus.bootstrap.css" rel="stylesheet">
        <script type="text/javascript" src="jquery.smartmenus.js"></script>
        <!-- SmartMenus jQuery Bootstrap Addon -->
        <script type="text/javascript" src="jquery.smartmenus.bootstrap.js"></script>
        <!-- SmartMenus jQuery plugin -->
    </head>
    <body style="font-family: 'Merriweather', serif;">
        <nav class="navbar navbar-default" role="navigation">
            <div class="container">
                <div class="navbar-header">
                    <a class="navbar-brand">HElib Implementing Homomorphic Encryption</a>
                </div>
            </div>
        </nav>
        <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
            <div class="content" id="content">
                <div class="container">
                    <div class="row">
                        <div class="col-sm-12 panel " style="padding-bottom: 15px;">
                            <div style="margin-bottom: 15px;">
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacehelib.html">helib</a></li><li class="navelem"><a class="el" href="structhelib_1_1_poly_mod_ring.html">PolyModRing</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="structhelib_1_1_poly_mod_ring-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">helib::PolyModRing Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Lightweight type for describing the structure of a single slot of the plaintext space.  
 <a href="structhelib_1_1_poly_mod_ring.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_poly_mod_ring_8h_source.html">PolyModRing.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:acdee8a99a4366ac200eb952270c443d5"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structhelib_1_1_poly_mod_ring.html#acdee8a99a4366ac200eb952270c443d5">PolyModRing</a> ()=delete</td></tr>
<tr class="separator:acdee8a99a4366ac200eb952270c443d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a964aef6ec7190568163c8ed93ecf4772"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structhelib_1_1_poly_mod_ring.html">PolyModRing</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structhelib_1_1_poly_mod_ring.html#a964aef6ec7190568163c8ed93ecf4772">operator=</a> (const <a class="el" href="structhelib_1_1_poly_mod_ring.html">PolyModRing</a> &amp;)=delete</td></tr>
<tr class="separator:a964aef6ec7190568163c8ed93ecf4772"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1295ad6567d80ced4d57938c03991ae"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structhelib_1_1_poly_mod_ring.html">PolyModRing</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structhelib_1_1_poly_mod_ring.html#af1295ad6567d80ced4d57938c03991ae">operator=</a> (<a class="el" href="structhelib_1_1_poly_mod_ring.html">PolyModRing</a> &amp;&amp;)=delete</td></tr>
<tr class="separator:af1295ad6567d80ced4d57938c03991ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad5f900826cac926940bd38a749df93eb"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structhelib_1_1_poly_mod_ring.html#ad5f900826cac926940bd38a749df93eb">PolyModRing</a> (const <a class="el" href="structhelib_1_1_poly_mod_ring.html">PolyModRing</a> &amp;other)=default</td></tr>
<tr class="memdesc:ad5f900826cac926940bd38a749df93eb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy constructor.  <a href="structhelib_1_1_poly_mod_ring.html#ad5f900826cac926940bd38a749df93eb">More...</a><br /></td></tr>
<tr class="separator:ad5f900826cac926940bd38a749df93eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a96c7a49fab96cb8c1e322d01804d8b88"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structhelib_1_1_poly_mod_ring.html#a96c7a49fab96cb8c1e322d01804d8b88">PolyModRing</a> (<a class="el" href="structhelib_1_1_poly_mod_ring.html">PolyModRing</a> &amp;&amp;other)=default</td></tr>
<tr class="memdesc:a96c7a49fab96cb8c1e322d01804d8b88"><td class="mdescLeft">&#160;</td><td class="mdescRight">Move constructor.  <a href="structhelib_1_1_poly_mod_ring.html#a96c7a49fab96cb8c1e322d01804d8b88">More...</a><br /></td></tr>
<tr class="separator:a96c7a49fab96cb8c1e322d01804d8b88"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2175edd6ede241f3a6408b9d169e51bc"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structhelib_1_1_poly_mod_ring.html#a2175edd6ede241f3a6408b9d169e51bc">~PolyModRing</a> ()=default</td></tr>
<tr class="memdesc:a2175edd6ede241f3a6408b9d169e51bc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="structhelib_1_1_poly_mod_ring.html#a2175edd6ede241f3a6408b9d169e51bc">More...</a><br /></td></tr>
<tr class="separator:a2175edd6ede241f3a6408b9d169e51bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ce2e7e8e9c94738c24f6b7861baff13"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structhelib_1_1_poly_mod_ring.html#a8ce2e7e8e9c94738c24f6b7861baff13">PolyModRing</a> (long <a class="el" href="structhelib_1_1_poly_mod_ring.html#a53fef893b5100a61915e34139f25a443">p</a>, long <a class="el" href="structhelib_1_1_poly_mod_ring.html#ab3f2d53747afa3845d079dc5d7f8bca7">r</a>, const NTL::ZZX &amp;<a class="el" href="structhelib_1_1_poly_mod_ring.html#a7f63d79df9e938c2f8cace891a619b94">G</a>)</td></tr>
<tr class="memdesc:a8ce2e7e8e9c94738c24f6b7861baff13"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <a href="structhelib_1_1_poly_mod_ring.html#a8ce2e7e8e9c94738c24f6b7861baff13">More...</a><br /></td></tr>
<tr class="separator:a8ce2e7e8e9c94738c24f6b7861baff13"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adeff8357a93b397153b7ebf94ecaa2e2"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structhelib_1_1_poly_mod_ring.html#adeff8357a93b397153b7ebf94ecaa2e2">operator==</a> (const <a class="el" href="structhelib_1_1_poly_mod_ring.html">PolyModRing</a> &amp;rhs) const noexcept</td></tr>
<tr class="memdesc:adeff8357a93b397153b7ebf94ecaa2e2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Equality operator.  <a href="structhelib_1_1_poly_mod_ring.html#adeff8357a93b397153b7ebf94ecaa2e2">More...</a><br /></td></tr>
<tr class="separator:adeff8357a93b397153b7ebf94ecaa2e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a585750c250ac48fd9a2b06ec5f754d5e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structhelib_1_1_poly_mod_ring.html#a585750c250ac48fd9a2b06ec5f754d5e">operator!=</a> (const <a class="el" href="structhelib_1_1_poly_mod_ring.html">PolyModRing</a> &amp;rhs) const noexcept</td></tr>
<tr class="memdesc:a585750c250ac48fd9a2b06ec5f754d5e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Not-equals operator.  <a href="structhelib_1_1_poly_mod_ring.html#a585750c250ac48fd9a2b06ec5f754d5e">More...</a><br /></td></tr>
<tr class="separator:a585750c250ac48fd9a2b06ec5f754d5e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a53fef893b5100a61915e34139f25a443"><td class="memItemLeft" align="right" valign="top">const long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structhelib_1_1_poly_mod_ring.html#a53fef893b5100a61915e34139f25a443">p</a></td></tr>
<tr class="memdesc:a53fef893b5100a61915e34139f25a443"><td class="mdescLeft">&#160;</td><td class="mdescRight">The characteristic of the plaintext space. This should be prime.  <a href="structhelib_1_1_poly_mod_ring.html#a53fef893b5100a61915e34139f25a443">More...</a><br /></td></tr>
<tr class="separator:a53fef893b5100a61915e34139f25a443"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3f2d53747afa3845d079dc5d7f8bca7"><td class="memItemLeft" align="right" valign="top">const long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structhelib_1_1_poly_mod_ring.html#ab3f2d53747afa3845d079dc5d7f8bca7">r</a></td></tr>
<tr class="memdesc:ab3f2d53747afa3845d079dc5d7f8bca7"><td class="mdescLeft">&#160;</td><td class="mdescRight">The power of p used in the plaintext space coefficient modulus.  <a href="structhelib_1_1_poly_mod_ring.html#ab3f2d53747afa3845d079dc5d7f8bca7">More...</a><br /></td></tr>
<tr class="separator:ab3f2d53747afa3845d079dc5d7f8bca7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f63d79df9e938c2f8cace891a619b94"><td class="memItemLeft" align="right" valign="top">const NTL::ZZX&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structhelib_1_1_poly_mod_ring.html#a7f63d79df9e938c2f8cace891a619b94">G</a></td></tr>
<tr class="memdesc:a7f63d79df9e938c2f8cace891a619b94"><td class="mdescLeft">&#160;</td><td class="mdescRight">The irreducible factor of Phi_m(X) used for the algebra of the individual slots.  <a href="structhelib_1_1_poly_mod_ring.html#a7f63d79df9e938c2f8cace891a619b94">More...</a><br /></td></tr>
<tr class="separator:a7f63d79df9e938c2f8cace891a619b94"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaeb79e9dc6bb265aa214926242573a5d"><td class="memItemLeft" align="right" valign="top">const long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structhelib_1_1_poly_mod_ring.html#aaeb79e9dc6bb265aa214926242573a5d">p2r</a></td></tr>
<tr class="memdesc:aaeb79e9dc6bb265aa214926242573a5d"><td class="mdescLeft">&#160;</td><td class="mdescRight">The plaintext space coefficient modulus, equal to p^r.  <a href="structhelib_1_1_poly_mod_ring.html#aaeb79e9dc6bb265aa214926242573a5d">More...</a><br /></td></tr>
<tr class="separator:aaeb79e9dc6bb265aa214926242573a5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:a1a9143aaf25751dbc3c9bc8eb96ae586"><td class="memItemLeft" align="right" valign="top">std::ostream &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structhelib_1_1_poly_mod_ring.html#a1a9143aaf25751dbc3c9bc8eb96ae586">operator&lt;&lt;</a> (std::ostream &amp;os, const <a class="el" href="structhelib_1_1_poly_mod_ring.html">PolyModRing</a> &amp;ring)</td></tr>
<tr class="memdesc:a1a9143aaf25751dbc3c9bc8eb96ae586"><td class="mdescLeft">&#160;</td><td class="mdescRight">Output shift operator.  <a href="structhelib_1_1_poly_mod_ring.html#a1a9143aaf25751dbc3c9bc8eb96ae586">More...</a><br /></td></tr>
<tr class="separator:a1a9143aaf25751dbc3c9bc8eb96ae586"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Lightweight type for describing the structure of a single slot of the plaintext space. </p>
<p>A single slot of the plaintext space is isomorphic to <img class="formulaInl" alt="$\mathbb{Z}[X]/(G(x),p^r)$" src="form_9.png" width="86" height="14"/> for some irreducible factor G of <img class="formulaInl" alt="$\Phi_m(X)$" src="form_10.png" width="39" height="14"/>, so the main useful members of this <code>struct</code> are <code>p</code>, <code>r</code>, <code>G</code>, and <code>p2r</code>.</p>
<p>The fields of this <code>struct</code> are all <code>const</code>, so they should be determined at the time of construction.</p>
<dl class="section note"><dt>Note</dt><dd>This <code>struct</code> aggregates this often-useful information into a single placeholder for convenience. </dd></dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="acdee8a99a4366ac200eb952270c443d5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acdee8a99a4366ac200eb952270c443d5">&#9670;&nbsp;</a></span>PolyModRing() <span class="overload">[1/4]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">helib::PolyModRing::PolyModRing </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ad5f900826cac926940bd38a749df93eb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad5f900826cac926940bd38a749df93eb">&#9670;&nbsp;</a></span>PolyModRing() <span class="overload">[2/4]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">helib::PolyModRing::PolyModRing </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structhelib_1_1_poly_mod_ring.html">PolyModRing</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">default</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Copy constructor. </p>

</div>
</div>
<a id="a96c7a49fab96cb8c1e322d01804d8b88"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a96c7a49fab96cb8c1e322d01804d8b88">&#9670;&nbsp;</a></span>PolyModRing() <span class="overload">[3/4]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">helib::PolyModRing::PolyModRing </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structhelib_1_1_poly_mod_ring.html">PolyModRing</a> &amp;&amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">default</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Move constructor. </p>

</div>
</div>
<a id="a2175edd6ede241f3a6408b9d169e51bc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2175edd6ede241f3a6408b9d169e51bc">&#9670;&nbsp;</a></span>~PolyModRing()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">helib::PolyModRing::~PolyModRing </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">default</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Destructor. </p>

</div>
</div>
<a id="a8ce2e7e8e9c94738c24f6b7861baff13"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8ce2e7e8e9c94738c24f6b7861baff13">&#9670;&nbsp;</a></span>PolyModRing() <span class="overload">[4/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">helib::PolyModRing::PolyModRing </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>p</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const NTL::ZZX &amp;&#160;</td>
          <td class="paramname"><em>G</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">p</td><td>The characteristic of the plaintext space. </td></tr>
    <tr><td class="paramname">r</td><td>The power of p used in the plaintext space coefficient modulus. </td></tr>
    <tr><td class="paramname">G</td><td>The irreducible factor of Phi_m(X) used for the algebra of the individual slots.</td></tr>
  </table>
  </dd>
</dl>
<p>p^r will be calculated automatically.</p>
<dl class="section note"><dt>Note</dt><dd>p should be a prime number. </dd></dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a585750c250ac48fd9a2b06ec5f754d5e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a585750c250ac48fd9a2b06ec5f754d5e">&#9670;&nbsp;</a></span>operator!=()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool helib::PolyModRing::operator!= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structhelib_1_1_poly_mod_ring.html">PolyModRing</a> &amp;&#160;</td>
          <td class="paramname"><em>rhs</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Not-equals operator. </p>

</div>
</div>
<a id="a964aef6ec7190568163c8ed93ecf4772"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a964aef6ec7190568163c8ed93ecf4772">&#9670;&nbsp;</a></span>operator=() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structhelib_1_1_poly_mod_ring.html">PolyModRing</a>&amp; helib::PolyModRing::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structhelib_1_1_poly_mod_ring.html">PolyModRing</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="af1295ad6567d80ced4d57938c03991ae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af1295ad6567d80ced4d57938c03991ae">&#9670;&nbsp;</a></span>operator=() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structhelib_1_1_poly_mod_ring.html">PolyModRing</a>&amp; helib::PolyModRing::operator= </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structhelib_1_1_poly_mod_ring.html">PolyModRing</a> &amp;&amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="adeff8357a93b397153b7ebf94ecaa2e2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adeff8357a93b397153b7ebf94ecaa2e2">&#9670;&nbsp;</a></span>operator==()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool helib::PolyModRing::operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structhelib_1_1_poly_mod_ring.html">PolyModRing</a> &amp;&#160;</td>
          <td class="paramname"><em>rhs</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Equality operator. </p>

</div>
</div>
<h2 class="groupheader">Friends And Related Function Documentation</h2>
<a id="a1a9143aaf25751dbc3c9bc8eb96ae586"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1a9143aaf25751dbc3c9bc8eb96ae586">&#9670;&nbsp;</a></span>operator&lt;&lt;</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::ostream&amp; operator&lt;&lt; </td>
          <td>(</td>
          <td class="paramtype">std::ostream &amp;&#160;</td>
          <td class="paramname"><em>os</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structhelib_1_1_poly_mod_ring.html">PolyModRing</a> &amp;&#160;</td>
          <td class="paramname"><em>ring</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Output shift operator. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">os</td><td>Output <code>std::ostream</code>. </td></tr>
    <tr><td class="paramname">ring</td><td><code><a class="el" href="structhelib_1_1_poly_mod_ring.html" title="Lightweight type for describing the structure of a single slot of the plaintext space.">PolyModRing</a></code> object to be written. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Input <code>std::ostream</code> post writing. </dd></dl>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a7f63d79df9e938c2f8cace891a619b94"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7f63d79df9e938c2f8cace891a619b94">&#9670;&nbsp;</a></span>G</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const NTL::ZZX helib::PolyModRing::G</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The irreducible factor of Phi_m(X) used for the algebra of the individual slots. </p>

</div>
</div>
<a id="a53fef893b5100a61915e34139f25a443"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a53fef893b5100a61915e34139f25a443">&#9670;&nbsp;</a></span>p</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const long helib::PolyModRing::p</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The characteristic of the plaintext space. This should be prime. </p>

</div>
</div>
<a id="aaeb79e9dc6bb265aa214926242573a5d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaeb79e9dc6bb265aa214926242573a5d">&#9670;&nbsp;</a></span>p2r</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const long helib::PolyModRing::p2r</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The plaintext space coefficient modulus, equal to p^r. </p>

</div>
</div>
<a id="ab3f2d53747afa3845d079dc5d7f8bca7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab3f2d53747afa3845d079dc5d7f8bca7">&#9670;&nbsp;</a></span>r</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const long helib::PolyModRing::r</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The power of p used in the plaintext space coefficient modulus. </p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following files:<ul>
<li>/HElib/include/helib/<a class="el" href="_poly_mod_ring_8h_source.html">PolyModRing.h</a></li>
<li>/HElib/src/<a class="el" href="_poly_mod_ring_8cpp.html">PolyModRing.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.8-->
<!-- start footer part -->
</div>
</div>
</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
        <script type="text/javascript" src="doxy-boot.js"></script>
</html>
